package com.mengfou.test;


import com.mengfou.ReflectUtils;

/**
 * @author 梦否
 * @date 2025/07/05 13:40
 */
public class Demod {

    private ClassLoader classLoader;
    private Object proxy;

    public void error(String tag, String s) {
        ReflectUtils reflectUtils = new ReflectUtils();
        reflectUtils.invokeMethod(reflectUtils.getField(proxy, "messages"), "clear");
        reflectUtils.invokeMethod(reflectUtils.newInstance("com.mengfou.test.DemoBean", classLoader), "doTest");
        System.out.println("finish with tag: " + tag + " < ------- > " + s);
    }
}
